package com.shaw.tiger;

public class ProxyImage implements Image {
	private RealImage realImage;
	private String fileName;

	public ProxyImage(String fileName) {
		this.fileName = fileName;
	}

	@Override
	public void disPlay() {
		
		if (realImage == null) {
			realImage = new RealImage(fileName);
		}
		realImage.disPlay();
	}
}
